<?php
!function_exists('readover') && exit('Forbidden');
class PW_HouseElement {
	//var $_element;
	function HouseElement() {
		$this->__construct();
	}
	function __construct() {
		
	}
	function newSubject($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->newSubject($round,$num);
	}
	function newReply($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->newReply($round,$num);
	}
	function digestSubject($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->digestSubject($round,$num);
	}
	function replySort($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->replySort($round,$num);
	}
	function hitSort($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->hitSort($round,$num);
	}
	function replySortDay($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->replySortDay($round,$num);
	}
	function highLightSubject($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->highLightSubject($round,$num);
	}
	function replySortWeek($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->replySortWeek($round,$num);
	}
	function hitSortDay($round='',$num=0) {
		$temp = $this->_getBBSElement();
		return $temp->hitSortDay($round,$num);
	}
//房产图片	
	function housePic($round='',$num=0) {
		$temp = $this->_getImageElement();
		return $temp->housePic($round,$num);
	}
//区域划分	
	function newHouseArea($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->newHouse($round,$num);
	}
	function hotHouseArea($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->hotHouse($round,$num);
	}
	function groupBuyHouseArea($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->groupBuyHouse($round,$num);
	}
	function collectHouseArea($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->collectHouse($round,$num);
	}
	function scoreHouseArea($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->scoreHouse($round,$num);
	}
	
//价格划分
	function newHousePrice($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->newHouse($round,$num,'price');
	}
	function hotHousePrice($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->hotHouse($round,$num,'price');
	}
	function groupBuyHousePrice($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->groupBuyHouse($round,$num,'price');
	}
	function collectHousePrice($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->collectHouse($round,$num,'price');
	}
	function scoreHousePrice($round='',$num=0) {
		$temp = $this->_getHouseElement();
		return $temp->scoreHouse($round,$num,'price');
	}
	
	function _getBBSElement() {
		return L::loadClass('element');
	}
	function &_getHouseElement() {
		static $class = array();
		if (isset($class[0])) return $class[0];
		require_once M_P.'lib/housesortelement.class.php';
		$class[0] = new PW_HouseSortElement();
		return $class[0];
	}
	function &_getImageElement() {
		static $class = array();
		if (isset($class[0])) return $class[0];
		require_once M_P.'lib/imageelement.class.php';
		$class[0] = new PW_ImageElement();
		return $class[0];
	}
}
?>